﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Spider
{
    class Program
    {
        static void Main(string[] args)
        {
            //数据采集
            DateTime dtStart = DateTime.Now.AddYears(-20);
            DateTime dtEnd = DateTime.Now;
            string mep_gov_cnUrl = string.Format("http://datacenter.mep.gov.cn/report/air_daily/air_dairy.jsp?city=&startdate={0}&enddate=2015-01-14&page=1", dtStart.ToString("yyyy-MM-dd"), dtEnd.ToString("yyyy-MM-dd"));

            //获取首页内容

            string indexContent = SpiderNet.GetHtmlContentByWebClient(mep_gov_cnUrl);



            //数据存储
        }
    }
}
